package com.example.sakurasay.passwordbook.data.entities

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date

@Entity(tableName = "shared_passwords")
data class SharedPassword(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,

    @ColumnInfo(name = "password_name")
    val passwordName: String,

    @ColumnInfo(name = "password")
    val password: String, // Will be encrypted

    @ColumnInfo(name = "notes")
    val notes: String?, // Nullable and will be encrypted

    @ColumnInfo(name = "created_at")
    val createdAt: Date = Date(),

    @ColumnInfo(name = "updated_at")
    val updatedAt: Date = Date()
)